import java.util.Map;
import java.util.Set;

/**
 * container class for each reference read from bibTex or decoded from TeX
 * @author cerko
 *
 */
public class Data {
	
	//typ referencie eg. book, article etc.
	private String type;
	//dvojie key - value eg. author = janko
	private Map<String, String> values;
	
	Data(String type, Map<String, String> values){
		this.setType(type);
		this.setValues(values);
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public String getValue(String key){
		return values.get(key);
	}
	
	public Map<String, String> getValues() {
		return values;
	}

	public void setValues(Map<String, String> values) {
		this.values = values;
	}
	
	public Set<String> getKeys(){
		return values.keySet();
	}
	
	//for debugging
	public String toString(){
		return type + " : " + values.toString();
	}
	
	
}
